package com.cdl.pair;

import com.cdl.Pair;

import java.time.LocalDate;

public class PairTest2 {

    public static void main(String[] args) {
        LocalDate[] birthdays = {
                LocalDate.of(1990, 1, 1),
                LocalDate.of(1991, 2, 2),
                LocalDate.of(1992, 3, 3),
                LocalDate.of(1993, 4, 4),

        };

        Pair<LocalDate> pair = ArrayAlg.minmax(birthdays);
        System.out.println("min = " + pair.getFirst());
        System.out.println("max = " + pair.getSecond());


    }
}
